package day124;

public class StringDemo {
    public static void main(String[] args) {
        /*
        字符串连接性能
         */
        String str="";
        long t1=System.currentTimeMillis();
        for (int i = 0; i < 5000; i++) {
            str = str + "A";
        }
        long t2=System.currentTimeMillis();
        System.out.println(t2-t1);
            
        }
    }

